package com.kgc.utils;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
public class TableResultMapUtils extends ResultMapUtils{
    private Integer count;

    public TableResultMapUtils(String code, String successMsg, Object data, Integer count) {
        this.count=count;
        this.code=code;
        this.data=data;
        this.msg=successMsg;
    }

    public static TableResultMapUtils SUCCESS(Object data,Integer count){
        return new TableResultMapUtils("0",ConfigUtills.SUCCESS_MSG,data,count);
    }
}
